<template>
  <div class="container">
    <!-- 顶部全局组件 -->
    <HospitalTop/>
    <!-- 展示路由组件的区域 -->
    <div class="content">
      <router-view></router-view>
    </div>
    <!-- 底部全局组件 -->
    <HospitalBottom/>
    <!-- 登录组件 -->
    <!-- v-if="userStore.visiable" 当对话框关闭时，直接去掉组件 -->
    <Login v-if="userStore.visiable"/>
  </div>
</template>

<script setup lang="ts">
import useUserStore from '@/store/modules/user';
let userStore = useUserStore();
</script>

<style scoped lang="scss">
.container{
  display: flex;
  flex-direction: column;
  align-items: center;
  .content{
    margin-top: 70px;
    width: 1200px;
    min-height: 900px;
  }
}
</style>